<%@ include file="/common/common.jsp"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<head>

<!--添加弹层效果和layui-->
<script type="text/javascript" src="<%=jsPath%>/layer/layer.js"></script>

<script>
    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
    $(document).ready(function(){
        $("#myBtn").click(function(){
            parent.$("#sendBtn").val($("#myText").val());
            parent.layer.tips('Look here', '#parentIframe', {time: 5000});
            parent.layer.close(index);
            parent.sendClick();
        });
    });      
</script>

</head>


<body>
输入字符串:
<input id="myText" type="text" /></br>
<button class="layui-btn layui-btn-primary" id="myBtn">点击测试</button>
</body>
